<?php
/**
 * @Notes:【】
 * @User: zwc
 * @Date: 2022-05-07 21:35
 */

namespace Yj\Tool;

class Carbon extends \Carbon\Carbon
{
    public static function date($date)
    {
        [$year, $month, $day] = explode('-', $date);
        return static::createFromDate($year, $month, $day);
    }
}